import React from 'react';

const Son = (props) => {
    console.log('props', props);
    return (
        <div>
            <p>son函数子组件--{props.username}</p>
            <ul>
                {
                    props.nameArr.map((item, index) => <li key={index}>{item}</li>)
                }
            </ul>
        </div>
    );
}

export default Son;
